package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.Orders;

public interface OrderService extends IService<Orders> {

    /**
     * 分页查询订单
     * @param page
     * @param pageSize
     */

    R<Page<OrdersDto>> searchOrdersPage(Long page, Long pageSize);

    /**
     * 用户下单
     * @param orders
     */
    void submit(Orders orders);
}
